﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core.Interfaces;

namespace Cofe.Core
{
    public abstract class RegisterModuleBase : IRegisterModule
    {
        public ICofeService[] Services
        {
            get { return _services.ToArray(); }
        }

        private List<ICofeService> _services = new List<ICofeService>();

        protected void registerServices(params ICofeService[] services)
        {
            _services.AddRange(services);
        }

        public virtual void PreRegister()
        {

        }

        public virtual void PostRegister()
        {

        }
    }
}
